//
//  QueryContainerMassLossDetailCell.m
//  CJRailTransport
//
//  Created by Hank on 2018/2/4.
//  Copyright © 2018年 amplity. All rights reserved.
//

#import "QueryContainerMassLossDetailCell.h"

@implementation QueryContainerMassLossDetailCell

// 设置数据
- (void)setData:(NSMutableArray *)dataArray
{
    // 设置顶部线
    self.topLine.hidden = self.indexPath.row == 0 ? YES : NO;
    // 设置底部线
    self.bottomLine.hidden = self.indexPath.row == dataArray.count - 1 ? YES : NO;
    // 设置数据
    self.state.text = [[dataArray[self.indexPath.row] allKeys]firstObject];
    self.location.text = [[dataArray[self.indexPath.row] allValues]firstObject];
}

//  去除分割线
- (UIView *)lineView
{
    return [[UIView alloc]init];
}

@end
